
#include "vector.h"

typedef struct sphere {
  int index;               // identifies a sphere; must be greater than 0

  Point center;
  float radius;

  float mat_ambient[3];    
  float mat_diffuse[3];
  float mat_specular[3];
  float mat_shineness;

  float reflectance;       
}Sphere;  
typedef Sphere  Spheres;



Sphere *intersect_scene(Point, Vector, Spheres *, Point *, int);
Vector sphere_normal(Point, Sphere *);
void add_sphere(Spheres *, Point, float, float [], float [], float [], float, float, int);
void add_sphere(Spheres *slist, Sphere *new_sphere) ;
